package account.repository;

import account.pojo.StudentAccount;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;
import org.springframework.data.repository.CrudRepository;

public interface StudentAccountRepository extends CrudRepository<StudentAccount, Long> {
    /**
     * 找出所有元素并按要求排序
     */
    Iterable<StudentAccount> findAll(Sort sort);

    /**
     * 分页查找
     */
    Page<StudentAccount> findAll(Pageable pageable);
}
